package com.agricultural.observer;

import com.agricultural.environment.EnvironmentMonitor;

public class EnvironmentDataLogger implements EnvironmentObserver {
    @Override
    public void update(EnvironmentMonitor monitor, String message) {
        System.out.println("环境数据记录: " + message);
        // 实际应用中可以将数据保存到文件或数据库
    }
}    